Page({
  data:{
    list:[
      {name:'mary',socre:{js:100,miniapp:96,php:100}},
      {name:'kitty',socre:{js:85,miniapp:95,php:80}},
      {name:'lissa',socre:{js:100,miniapp:86,php:88}},
      {name:'tom',socre:{js:99,miniapp:92,php:98}},
      {name:'john',socre:{js:100,miniapp:99,php:90}}
    ]
  },
  click(e){
    console.log(e)
    const index = e.currentTarget.dataset.id
    const sum = this.data.list[index].socre.js +
                this.data.list[index].socre.miniapp +
                this.data.list[index].socre.php
    wx.showToast({
      title: this.data.list[index].name+'总分：'+sum,
    })
  }
})